/*
 * @Author       : mengqingxin
 * @Date         : 2020-12-01 21:20:16
 * @LastEditors  : mengqingxin
 * @LastEditTime : 2020-12-01 21:43:37
 */
import request from '../utils/request';
const baseUrl = getApp().globalData.baseUrl

// 文章列表
export function queryArticle(data) {
  return request({
    url: `${baseUrl}/sys/article/query?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
    method: 'post',
    data
  })
}

// 文章详情
export function getOne(data) {
  return request({
    url: `${baseUrl}/sys/article/getOne`,
    method: 'post',
    data
  })
}